package com.fee1in;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

/**
 * @author linhui
 */
public class Configuration {

    protected Properties variables = new Properties();
    protected final Map<String, MappedStatement> mappedStatements = new HashMap<>();
    protected  DataSource dataSource;


    public void setVariables(Properties variables) {
        this.variables = variables;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public void addMappedStatement(MappedStatement statement){
        mappedStatements.put(statement.getId(),statement);
    }
}
